package com.nursinghome.common.mapper;

import com.nursinghome.bean.Category;
import com.nursinghome.bean.CategoryGoods;

import java.util.List;

/**
* @author 程硕
* @createDate 2025-04-07 00:52:14
* @Entity com.nursinghome.bean.CategoryGoods
*/
public interface CategoryGoodsMapper {
    //新增
    Integer insert(CategoryGoods categoryGoods);
    //修改
    Integer update(CategoryGoods categoryGoods);
    //根据id回显数据
    CategoryGoods selectById(Integer id);
    //根据商品删除
    Integer deleteByGoodsId(Integer goodsId);
    //根据分类删除
    Integer deleteByCategoryId(Integer goodsId);
    //查询所有
    List<Category> selectAll(CategoryGoods categoryGoods);
}
